import { createSlice } from "@reduxjs/toolkit";

export const userSlice = createSlice({
  name: "user",
  initialState: {
    shuju: {},
  },
  reducers: {
    addshuju(state, action) {
      state.shuju = action.payload;
    },
  },
});

// Action creators are generated for each case reducer function
export const { addshuju } = userSlice.actions
export default userSlice.reducer;
